<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-on 指令</title>
</head>
<body>
<div id="app">
    <div>{{ info }}</div>
    <h1 v-once>{{ info }}</h1>
</div>

<script type="module">
    import {createApp, ref} from "../../../js/vue.esm-browser.js";

    let app = createApp(
        {

            setup() {
                let info = ref("Hello, Vue");
                return {
                    info
                }
            }
        }
    );

    app.mount("#app")
</script>
</body>
</html>